package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmMaterialDto;
import com.heima.model.wemedia.pojos.WmMaterial;
import com.heima.model.wemedia.pojos.WmUser;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author shiminghui
 * @date 2024/11/1 16:03
 * @description: TODO
 */
public interface WmMaterialService extends IService<WmMaterial> {
    /**
     * 图片上传
     *
     * @param multipartFile
     * @param wmUser
     * @return
     */
    ResponseResult uploadPicture(MultipartFile multipartFile, WmUser wmUser);

    /**
     * 图片列表
     *
     * @param wmMaterialDto
     * @param user
     * @return
     */
    ResponseResult list(WmMaterialDto wmMaterialDto, WmUser user);

    /**
     * 图片删除
     *
     * @param wmMaterialId
     * @param wmUser
     * @return
     */
    ResponseResult delPicture(Integer wmMaterialId, WmUser wmUser);

    /**
     * 收藏图片
     *
     * @param wmMaterialId
     * @param wmUser
     * @return
     */
    ResponseResult collect(Integer wmMaterialId, WmUser wmUser);
}
